<template>
  <div>
    
    <van-count-down :time="time">
      <template #default="timeData">
        <span class="text">嗨购秒杀</span>
        <span class="block">{{ timeData.hours }}</span>
        <span class="colon">:</span>
        <span class="block">{{ timeData.minutes }}</span>
        <span class="colon">:</span>
        <span class="block">{{ timeData.seconds }}</span>
      </template>
    </van-count-down>
  </div>
</template>

<script>
import Vue from "vue";
import { CountDown } from "vant";
Vue.use(CountDown);
export default {
  data() {
    return {
      time: 24 * 60 * 60 * 1000,
    };
  },
};
</script>

<style scoped>
.colon {
  display: inline-block;
  margin: 0 4px;
  color: #ee0a24;
}
.block {
  display: inline-block;
  width: 22px;
  color: #fff;
  font-size: 12px;
  text-align: center;
  background-color: #ee0a24;
}
.text{
    color: #ee0a24;
}
</style>